package rmiClient;

import java.io.Serializable;
import java.util.Vector;

/**
 * @author arthur
 * 
 */
public class Token implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4020640757057352075L;
	Vector<Integer> alreadyInterrogated;
	Score bestScore;
	int initiator;
	String videoName;

	public Token(Client_IMPL initiator, String videoName) {
		alreadyInterrogated = new Vector<Integer>();
		alreadyInterrogated.insertElementAt(initiator.getId(), 0);
		bestScore = new Score(initiator.getScoreLocal(), initiator);
		this.initiator = initiator.getId();
		this.videoName = videoName;
	}

	public Vector<Integer> getAlreadyInterrogated() {
		return alreadyInterrogated;
	}

	public Score getBestScore() {
		return bestScore;
	}

	public int getInitiator() {
		return initiator;
	}

	public void setAlreadyInterrogated(Vector<Integer> alreadyInterrogated) {
		this.alreadyInterrogated = alreadyInterrogated;
	}

	public void setBestScore(Score bestScore) {
		this.bestScore = bestScore;
	}

	public void setInitiator(int initiator) {
		this.initiator = initiator;
	}

}
